package cn.livingCloud.entity.core;

/**
 * Created by 唐旭 on 2016/6/3.
 */
public enum CaseRecordType {
    REPORT("上报"), CANCELLED("作废"), ASSIGNMENT("分派"), FINISH("完成"), SUBMIT_PENDING("提交审核"), REJECT_PENDING("驳回");
    private String label;

    CaseRecordType() {
    }

    CaseRecordType(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public CaseRecordType setLabel(String label) {
        this.label = label;
        return this;
    }

    public boolean isReport() {
        return REPORT.equals(this);
    }

    public boolean isCancelled() {
        return CANCELLED.equals(this);
    }

    public boolean isAssignment() {
        return ASSIGNMENT.equals(this);
    }

    public boolean isFinish() {
        return FINISH.equals(this);
    }

    public boolean isSubmitPending() {
        return SUBMIT_PENDING.equals(this);
    }

    public boolean isRejectPending() {
        return REJECT_PENDING.equals(this);
    }
}
